<?php 
namespace app\Admin\model;
use think\Model;
class Users extends Model
{
	public function add($data){
		return $this->save($data);
		// print_r($data);die;
	}
	public function select(){
		return Users::All();
	}
	public function find($user_id){
		return $this->where('user_id', $user_id)->find();
	}
	public function del($user_id){
		return Users::where('user_id',$user_id)->delete();
	}
	public function upd($qq,$user_id){
		// save方法第二个参数为更新条件
		return $this->save([
		    'qq'  => $qq,
		],['user_id' => $user_id]);

	}

	public function upd1($data,$user_id){
		// save方法第二个参数为更新条件
		return $this->save($data,['user_id' => $user_id]);
	}



	// public function member_add_data(){
	// 	$data=input("post.");
	// }

}